package com.wanggsx.library.util.fun.webview;

import android.os.Bundle;
import android.view.View;

import com.wanggsx.library.R;
import com.wanggsx.library.base.view.BaseActivity;
import com.wanggsx.library.base.views.webview.MyWebView;

/**
 * Created by wangweigang on 16/4/22.
 */
public class MyWebViewActivityWithoutTittleBar extends BaseActivity {
    public static final String URL = "URL";
    private MyWebView myWebView;
    private View mBackView;

    @Override
    public int setRootLayoutId() {
        return R.layout.activity_webview;
    }

    @Override
    public void initView(Bundle savedInstanceState, View contentView) {
        myWebView = (MyWebView) findViewById(R.id.webview_activity);
    }

    @Override
    public void initData(Bundle bundle) {
        myWebView.loadUrl(getIntent().getStringExtra(URL));
    }

    @Override
    public void doBusiness() {

    }

    @Override
    public void setListener() {

    }

    @Override
    public void onWidgetClick(View view) {

    }

    @Override
    public boolean onBack() {
        finish();
        overridePendingTransition(R.anim.in_from_left, R.anim.out_to_right);
        return true;
    }

}
